<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String basePath = "http://" + request.getLocalAddr() + ":"
			+ request.getLocalPort() + request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 

<head>

 <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/heaq/pas.css">
 
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jquery.grid.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jquery.grid.tree.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jquery.tree.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jquery.select.css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/validator.css">
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.1.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.wresize.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.form.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.grid.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.grid.tree.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.tree.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.screen.js" type="text/javascript"></script>
<script language="javascript" src="<%=request.getContextPath()%>/js/jquery.select.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/password_strength_plugin.js"></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/password_style.css"/>
<script src="<%=request.getContextPath()%>/js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="<%=request.getContextPath()%>/js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"actionForm",onerror:function(){alert("校验没有通过，具体错误请看错误提示")}}); 
	 
	$("#name").formValidator({onshow:"请输入姓名",onfocus:"请输入您的真实姓名",oncorrect:"谢谢您的配合"}).inputValidator({min:1,onerror:"姓名不能为空,请确认"});
	//需要什么正则表达式可以在formValidatorRegex.js里面自己写
	 
	$("#password").formValidator({onshow:"请输入密码",onfocus:"密码由6-15位的字母或数字组成",oncorrect:"密码合法"}).inputValidator({min:6,max:15,empty:{leftempty:false,rightempty:false,emptyerror:"密码两边不能有空符号"},onerror:"密码的长度不正确"}).regexValidator({regexp:"password",datatype:"enum",onerror:"密码格式不正确"});
	$("#confirmPwd").formValidator({onshow:"请输入重复密码",onfocus:"两次密码必须一致",oncorrect:"密码一致"}).inputValidator({min:6,max:15,empty:{leftempty:false,rightempty:false,emptyerror:"重复密码两边不能有空符号"},onerror:"重复密码的长度不正确"}).compareValidator({desid:"password",operateor:"=",onerror:"两次密码不一致,请确认"});
	$("#mobilePhone").formValidator({onshow:"请输入移动电话",onfocus:"移动电话不能为空",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,onerror:"移动电话不能为空"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的移动电话不符合规范"});
	$("#officePhone").formValidator({onshow:"请输入办公电话",onfocus:"办公电话不能为空",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,onerror:"办公电话不能为空"}).regexValidator({regexp:"tel",datatype:"enum",onerror:"你输入的办公电话不符合规范"});
	$("#email").formValidator({onshow:"请输入邮箱地址",onfocus:"邮箱地址不能为空",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,onerror:"邮箱地址不能为空"}).regexValidator({regexp:"email",datatype:"enum",onerror:"你输入的邮箱不符合规范"});

	$("#password").passStrength({ 
		shortPass: "top_shortPass", 
		badPass: "top_badPass", 
		goodPass: "top_goodPass", 
		strongPass: "top_strongPass", 
		userid: "#loginID"
	}); 
});
function comeBack(){
	actionForm.action="decorateForwardAction.action?code=003001&imitateBack=1";
	actionForm.submit();
};
</script>
</head>
<body id="homepage">
<div id="content">
  <div id="newInfo">
    <div class="module">
      <h2>新建用户</h2>
		<form name="actionForm" method="post" action="operateAction.action" id="actionForm">
		<input type="hidden" value="name" name="logColumn" /> 
		<input type="hidden" value="true" name="islog" /> 
		<input type="hidden" name="code" value="${code}"> 
		<input type="hidden" name="imitateStep" value="sys_user_mgr_step_1">
		<input type="hidden" name="stepReloadType" id="stepReloadType" value="${stepReloadType}">
  <ul class="newInfoList">
        
        <li>
          <label>姓名：</label>
         	<input name="paramMap.name" type="text" maxlength="20" id="name" style="width: 200;" />&nbsp;<font color="red">*</font><span id="nameTip" style="width:250px"></span>
        </li>
        <li>
          <label>性别</label>
          <select name="paramMap.gender">
            <option value="1">男</option>
            <option value="2">女</option>
            <option value="3">未知</option>
          </select>
        </li>
  		<li>
          <label>用户帐号：</label>
         	<input name="paramMap.loginID" type="text" maxlength="20" id="loginID" style="width: 200;" />&nbsp;<font color="red">*</font><span id="loginIDTip" style="width:250px"></span>
        </li>
        
        <li>
          <label>帐号密码：</label>
         	 <input name="paramMap.password" type="password" maxlength="15" id="password" style="width: 200;"/>&nbsp;<font color="red">*</font><span id="passwordTip" style="width:250px"></span>
                                        
           </li>
           
        <li>
          <label>帐号密码：</label>
         	<td class="SkyTDLine"><input name="paramMap.confirmPwd" type="password" maxlength="15" id="confirmPwd" style="width: 200;"/>&nbsp;<font color="red">*</font><span id="confirmPwdTip" style="width:250px"></span></td>
	 	</li>
	 	 <li>
          <label>城市：</label>
         	<input name="paramMap.userCity" type="text" maxlength="15" id="userCity" style="width: 200;"/>&nbsp;<font color="red">*</font><span id="confirmPwdTip" style="width:250px"></span>
	 	</li>
		<li>
          <label>单位：</label>
         	<td class="SkyTDLine"><input name="paramMap.userCompany" type="text" maxlength="15" id="userCompany" style="width: 200;"/>&nbsp;<font color="red">*</font><span id="confirmPwdTip" style="width:250px"></span>
	 	</li>					 
		<li>	
			<label>科室：</label>
         	<td class="SkyTDLine"><input name="paramMap.userDepartment" type="text" maxlength="15" id="userDepartment" style="width: 200;"/>&nbsp;<font color="red">*</font><span id="confirmPwdTip" style="width:250px"></span>
	 	</li>	
	 	<li>	
			<label>办公电话：</label>
         	<td class="SkyTDLine"><input name="paramMap.officePhone" type="text" maxlength="20" id="officePhone" style="width: 200;" /><font color="red">*</font><span id="officePhoneTip" style="width:250px"></span>
	 	</li>					 
	 	<li>	
			<label>移动电话：</label>
         	<td class="SkyTDLine"><input name="paramMap.mobilePhone" type="text" maxlength="15" id="mobilePhone" style="width: 200;" /><font color="red">*</font><span id="mobilePhoneTip" style="width:250px"></span>
	 	</li>	
	 	
	 	<li>	
			<label>email：</label>
         	<td class="SkyTDLine"><input name="paramMap.email" type="text" maxlength="200" id="email" style="width: 200;" /><font color="red">*</font><span id="emailTip" style="width:250px"></span>
	 	</li>	
	 	
	 	<div class="">
	 	<table width="100%">
	 			<tr>
	 			<td align="right"><input type="submit" name="BtnOk" align="middle" value="创建" id="BtnOk"    />
	 			</td>
	 			<td align="middle"><input type="reset" align="middle" name="reset" value="重置" id="reset"    />
	 			</td>
	 			<td align="left"><input type="button" align="middle" name="BtnReturn" value="返回" id="BtnReturn"     onclick="comeBack();" />
	 			</td>
	 			</tr>
	 	</table>
	 	 
							 
</form>
    </div>
  </div>
</div>
</body>
</html>
